compose button functioning