add button funcionality