Added hiding buttons when limit is reached

Added lock and hidden booleans