 He was then elected alderman after the city was incorporated in 1836 and elected to that position again in 1838.From 1837-1838 Dockstader was chosen as a delegate to the county and state Whig conventions.It was because of this popularity that he was elected mayor in 1840.