implemented actionmanager better