Adding Edit clicked functionality