adding action functionality