Added functions for adding buttons