better implementation of level buttons