Added the ability to do onclick actions