Implemented actions_on_top and actions_on_bottom (fixes #267, #268)
Fixed tests
Merge pull request #309 from dbrgn/actions_on_top_bottom

Implemented actions_on_top and actions_on_bottom