makes the tools dropdown behave