removing and adding background now works in propper way