working on function select button