fixed some routing issues.

Changed the layout of admin routes choose type fo action and then
object,